package com.tpshion.cloud.gateway.service;

import com.tpshion.cloud.common.support.RefreshDto;
import com.tpshion.cloud.common.support.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户服务远程调用
 */
@FeignClient(value = "tpshion-cloud-auth")
public interface UserService {

    /**
     * 刷新token过期时间
     * @param refreshDto
     * @return
     */
    @PostMapping("/user/refresh")
    Result refresh(@RequestBody @Validated RefreshDto refreshDto);
}
